package cn.tutu.blockchain.bank.entity;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import cn.tutu.blockchain.base.BaseObject;

public class Bank extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5904119921203244828L;
	@NotBlank(message = "用户ID不能为空!")
	private String userId;
	// 银行帐号
	@NotBlank(message = "帐号不能为空")
	@Pattern(regexp = "^\\d+$", message = "帐号只能为数字!")
	private String cardNum;
	// 开户行名称
	@NotBlank(message = "开户行名称不能为空!")
	private String bankName;
	// 持卡人姓名
	@NotBlank(message = "持卡人姓名不能为空!")
	private String cardholder;
	// 开户支行
	@NotBlank(message = "开户支行不能为空!")
	private String bankBranch;
	// 创建时间
	private Date createTime;
	// 最后更新时间
	private Date lastUpdateTime;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCardNum() {
		return cardNum;
	}

	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getCardholder() {
		return cardholder;
	}

	public void setCardholder(String cardholder) {
		this.cardholder = cardholder;
	}

	public String getBankBranch() {
		return bankBranch;
	}

	public void setBankBranch(String bankBranch) {
		this.bankBranch = bankBranch;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}
